
package Model;

import java.util.List;

import javax.persistence.*;

@Entity
@PrimaryKeyJoinColumn(name="id")
@NamedQueries({
	@NamedQuery(name = "searchVeterinarianbyName", query = "SELECT e FROM Veterinarian e WHERE e.name = :name")
})
public class Veterinarian extends Person{
	
	@Basic
    private String focusPractice;
    
	@Basic
	private String specialites;
    
	@Basic
	private Integer Salary;
    
	@Basic
	private String graduatedAr;
    
    @OneToMany(mappedBy = "veterinarian")
    List<Appointment> appointments;
   
      
    public List<Appointment> getAppointments() {
		return appointments;
	}

	public void setAppointments(List<Appointment> appointments) {
		this.appointments = appointments;
	}

	public String getFocusPractice() {
        return focusPractice;
    }

    public void setFocusPractice(String focusPractice) {
        this.focusPractice = focusPractice;
    }

    public String getSpecialites() {
        return specialites;
    }

    public void setSpecialites(String specialites) {
        this.specialites = specialites;
    }

    public Integer getSalary() {
        return Salary;
    }

    public void setSalary(Integer Salary) {
        this.Salary = Salary;
    }

    public String getGraduatedAr() {
        return graduatedAr;
    }

    public void setGraduatedAr(String graduatedAr) {
        this.graduatedAr = graduatedAr;
    }
    
    
}
